home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / bash_114.zip / bash-1.14.2 / maxpath.h < prev    next >
Text File  |  1994-01-03  |  1KB  |  44 lines

  1. /* maxpath.h - Find out what this system thinks MAXPATHLEN is. */
  2.  
  3. /* Copyright (C) 1993 Free Software Foundation, Inc.
  4.  
  5.    This file is part of GNU Bash, the Bourne Again SHell.
  6.  
  7.    Bash is free software; you can redistribute it and/or modify it under
  8.    the terms of the GNU General Public License as published by the Free
  9.    Software Foundation; either version 2, or (at your option) any later
  10.    version.
  11.  
  12.    Bash is distributed in the hope that it will be useful, but WITHOUT ANY
  13.    WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14.    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15.    for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License along
  18.    with Bash; see the file COPYING.  If not, write to the Free Software
  19.    Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  20.  
  21. #if !defined (_MAXPATH_H)
  22. #define _MAXPATH_H
  23.  
  24. #if !defined (MAXPATHLEN) && defined (HAVE_LIMITS_H)
  25. #  if !defined (BUILDING_MAKEFILE)
  26. #    include <limits.h>
  27. #  endif /* BUILDING_MAKEFILE */
  28. #endif /* !MAXPATHLEN && HAVE_LIMITS_H */
  29.  
  30. #if !defined (MAXPATHLEN) && defined (HAVE_SYS_PARAM)
  31. #  include <sys/param.h>
  32. #endif /* !MAXPATHLEN && HAVE_SYS_PARAM */
  33.  
  34. #if !defined (MAXPATHLEN) && defined (PATH_MAX)
  35. #  define MAXPATHLEN PATH_MAX
  36. #endif /* !MAXPATHLEN && PATH_MAX */
  37.  
  38. /* Yecch!  Who cares about this gross concept in the first place? */
  39. #if !defined (MAXPATHLEN)
  40. #  define MAXPATHLEN 1024
  41. #endif /* MAXPATHLEN */
  42.  
  43. #endif /* _MAXPATH_H */
  44.